package v1

import "time"

// CreateUserParams 创建用户的请求参数
type CreateUserParams struct {
	Username string    `json:"username" binding:"required"`
	Mobile   string    `json:"mobile" binding:"required"`
	Password string    `json:"password" binding:"required"`
	Nickname string    `json:"nickname" binding:"required"`
	Birthday time.Time `json:"birthday"`
	Gender   string    `json:"gender" binding:"required"`
	Role     int64     `json:"role" binding:"required"`
}

// GetUserListParams 请求列表的请求参数
type GetUserListParams struct {
	PageNumber int `json:"page_number" binding:"required"`
	PageSize   int `json:"page_size" binding:"required"`
}

// UserEnterParams 用户登陆请求参数
type UserEnterParams struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

// UpdateUserParams 修改用户的请求参数
type UpdateUserParams struct {
	Username string    `json:"username" binding:"required"`
	Nickname string    `json:"nickname" binding:"required"`
	Birthday time.Time `json:"birthday"`
	Gender   string    `json:"gender" binding:"required"`
	Role     int64     `json:"role" binding:"required"`
}
